package com._520it.crm.web.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com._520it.crm.domain.Agreement;
import com._520it.crm.service.IAgreementService;
@Controller
public class AgreementCotroller {
	@Autowired
	private IAgreementService service;
	@RequestMapping("/agreement")
	public String index(){
		return "agreement/index";
	}
	@RequestMapping("/agreement_selectAll")
	@ResponseBody
	public List<Agreement> selectAll(){
		return service.selectAll();
	}
}
